package com.zbkj.crmeb.enums;

/**
 * 供应商统一枚举
 */

public enum SupplierUnificationEnum{

    INSIDE(1, 1000,null,"自定义商品"),
    EUROPE(2,2000, 10002," 欧洲商品"),
    BUYER(3, 3000,10001,"buyer商品"),
    TMALL(4, 4000,null,"tmall商品"),
    IM(5, 5000,10005,"IM商品"),
    XYY(6, 6000,10006,"XYY商品"),
    JKY(8, 8000,10008,"吉客云商品"),
    VIETTI(9, 9000,10009,"vietti商品"),
    COLTORTI(21, 2100,10021,"COLTORTI商品"),
    LEAM(22, 2200,10022,"LEAM商品"),
    BELLETTINI(23, 2300,10023,"BELLETTINI商品"),
    GB(24, 2400,10024,"GB商品"),
    CAROTTA(25, 2500,10025,"CAROTTA商品"),
    FOLLI(27, 2700,10027,"FOLLi商品"),
    DELLOGLIO(28, 2800,10028,"DELLOGLIO商品"),
    ORANGE(29, 2900,10029,"ORANGE商品"),
    UNIBUY(31, 3100,10031,"UNIBUY商品境外"),
    UNIBUY1(35, 3500,10035,"UNIBUY商品境内"),
    CRIS(33, 3300,10033,"ITZ020-CRIS商品"),
    LAVITA(41, 4100,10041,"LAVITA商品"),
    PURE(42,4200,10042,"022-PURE商品"),
    MARZO13DE(43,4300,10043,"13De Marzo"),
    
    ;

    //isEurope类型
    private Integer type;
    //barcode前缀
    private Integer code;
    //商户id
    private Integer merchantId;
    private String msg;

    SupplierUnificationEnum(Integer type,Integer code,Integer merchantId, String msg) {
        this.type = type;
        this.code = code;
        this.merchantId = merchantId;
        this.msg = msg;
    }

//    public static SupplierUnificationEnum valueOfCode(Integer code) {
//        for (SupplierUnificationEnum value : values()) {
//            if (value.getCode().equals(code)) {
//                return value;
//            }
//        }
//        return null;
//    }
//
//    public static SupplierUnificationEnum valueOfType(Integer type) {
//        for (SupplierUnificationEnum value : values()) {
//            if (value.getType().equals(type)) {
//                return value;
//            }
//        }
//        return null;
//    }

    public Integer getType() {
        return type;
    }

    public Integer getCode() {
        return code;
    }

    public Integer getMerchantId() {
        return merchantId;
    }


    public String getMsg() {
        return msg;
    }

}
